<template>
  <div>
    <phone-login :ruleForm='phoneForm' :countdown="30" @send='send' @submit='submit' @errHandle='errHandle'></phone-login>
  </div>
</template>

<script>
export default {
  name:'numlogin',
  data(){
    return{
      phoneForm:{
        phone:'',
        code:''
      }
    }
  },
  methods:{
    //验证码逻辑
    send(){
      this.$message.info('发送验证码成功')
    },
    submit(){
      this.$message.success('登录成功')
    },
    errHandle(){
      this.$message.error('登录失败，请检查')
    }
  }
}
</script>

<style>

</style>